From 80e1213d9299e9f52f30543c00617156cba24580 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Thu, 7 Jun 2007 22:35:00 +0000 Subject: [PATCH] stmwpp: Fix ZERO-trimming code in stmwpp_write_double. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2821 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/stmwpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/stmwpp.c b/gpsbabel/stmwpp.c index 311bac403..af8a0ee23 100644 --- a/gpsbabel/stmwpp.c +++ b/gpsbabel/stmwpp.c @@ -211,7 +211,7 @@ stmwpp_write_double(const double val) c = buff + snprintf(buff, sizeof(buff), "%3.7f", val); while (*--c == '0') *c = '\0'; - if (*c == '.') *c = '0'; + if (*c == '.') *++c = '0'; gbfprintf(fout, "%s,", buff); } -- 2.30.2